package com.xiaotu.common;


import javax.servlet.http.HttpServletRequest;

/**
 * @author zhangxiao
 * @create 2022-03-16 14:31
 */
public class BaseController {

    public Integer getPlayerId(HttpServletRequest request) {
        return Integer.valueOf(request.getAttribute("playerId").toString());
    }

    public String getPhone(HttpServletRequest request) {
        return request.getAttribute("phone").toString();
    }

}
